import {useUserStore} from "@/store/user";
import {computed} from "vue";
export const  getAvatar = ()=>{
    const userStore = useUserStore()
    const avatarSrc = computed(()=>{
        // console.log(userStore)
        return userStore.userInfo.photo || require('@/assets/1.gif')
    })
    // console.log(avatarSrc)
    return {avatarSrc}
}
